package main

import "fmt"

type Person struct {
	name string
	age  int
	sex  string
}

func main() {
	var p1 Person
	p1.name = "lee"
	p1.age = 33
	p1.sex = "男"

	fmt.Printf("值：%v，类型：%T\n", p1, p1)  //值：{lee 33 男}，类型：main.Person
	fmt.Printf("值：%#v，类型：%T\n", p1, p1) //值：main.Person{name:"lee", age:33, sex:"男"}，类型：main.Person
}
